{% extends "site.html" %}
{# база с деревом #}
{% block appstylesheet %}{{ STATIC_URL }}filedownload/css/filedownload.css{% endblock %}
{% block extrahead %}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}filedownload/css/filedownload-tree.css"> 
<script type="text/javascript" src="{{ STATIC_URL }}filedownload/js/jquery-1.7.js"></script> 
<script type="text/javascript" src="{{ STATIC_URL }}filedownload/js/filedownload-tree.js"></script> 
<script type="text/javascript" src="{{ STATIC_URL }}filedownload/js/filedownload.js"></script> 
{% endblock %}

{% block globalconteiner %}
<div id="title">
  <h1>Самба</h1>
  <h2>Корень/{{ pwd }}</h2>
</div>  
<div id="content">
<div id="content-left">
  {% comment %} 
  <div class="toolbar">
    <ul>
      <li><a href="/">Свернуть все</a></li>
      <li><a href="catalog/">Развернуть все</a></li>
    </ul>
  </div>
  {% endcomment %} 
    <div class="main-treeview treeview">   
        <ul>
            {% include 'filedownload/treeview_node.html' %}
        </ul>
        <script language="JavaScript">                
        
        //UnHideOpenNodes();
        
        {% comment %}
        {% for item in category_path %}
        UnHideNodeItem('tn_'+{{item.id}});
        {% endfor %} 
        {% endcomment %} 
        
        
        var selectitem = document.getElementById('ti_{{ currentcategory }}');
        if(selectitem) 
            selectitem.style.fontWeight = 'bold'; 



        
       </script>    
    </div>
</div>
{% block content_right %}
{% endblock %}
</div>
{% endblock %}